//
// Created by Tony on 2024/7/2.
//

#ifndef PARSER_ACCESS_FLAGS_H
#define PARSER_ACCESS_FLAGS_H

#include "../../../tvm/rt_code/AccessFlag.h"
#include "../AstList.h"
#include <cstdint>

namespace Parser {

class AccessFlags final : public AstList {
    string nodeName;

public:
    explicit AccessFlags(const vector<shared_ptr<Ast>>& children) : AstList(children) {
        nodeName = __func__;
    }

    RtCode::AccessFlag getFlags();

    int32_t accept(Compiler::Visitor* visitor) override;
};

} // namespace Parser

#endif // PARSER_ACCESS_FLAGS_H
